﻿requiresextension = 'ffusers'
name = 'Subscription Counter'
description = "Number of Subscriptions"
author = "Yuvi"
category = "ffuser"
headers = ['NickName','Subscriptions']

def map(obj):
	return {obj.NickName:len(obj.Subscriptions)}

def reduce(kvp):
	return [kvp.Key, sum(kvp.Value)]
